package com.pan.hisystem.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author qingyang
 * @since 2022-03-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("h_patient")
@ApiModel(value="Patient对象", description="")
public class Patient implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "患者id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "就诊卡号")
    private String mid;

    @ApiModelProperty(value = "年龄")
    private Integer age;

    @ApiModelProperty(value = "出生日期")
    private String birthday;

    @ApiModelProperty(value = "婚姻状况")
    @TableField("married_status")
    private String marriedStatus;

    @ApiModelProperty(value = "籍贯省份")
    private String province;

    @ApiModelProperty(value = "籍贯城市")
    private String city;

    @ApiModelProperty(value = "民族id")
    private Integer nationId;

    @ApiModelProperty(value = "政治面貌id")
    @TableField("politics_status_id")
    private Integer politicsStatusId;

    @ApiModelProperty(value = "家族遗传史")
    @TableField("family_history")
    private String familyHistory;

    @ApiModelProperty(value = "过往病史")
    @TableField("past_history")
    private String pastHistory;

    @ApiModelProperty(value = "身体平常状况")
    @TableField("personal_history")
    private String personalHistory;

    @ApiModelProperty(value = "就诊卡信息")
    @TableField(exist = false)
    private MedicalCard medicalCard;

    @ApiModelProperty(value = "民族")
    @TableField(exist = false)
    private Nation nation;

    @ApiModelProperty(value = "政治面貌")
    @TableField(exist = false)
    private PoliticsStatus politicsStatus;



}
